<div class="row-fluid sortable ui-sortable">
	<div id="list-peternakan" class="box span12">
		<div class="box-header well" data-original-title>
			<h2><i class="icon-home"></i> Peternakan</h2>
			<div class="box-icon">
				<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
			</div>
		</div>
		<div class="box-content">
			<table class="table table-striped table-bordered bootstrap-datatable datatable">
				<thead>
					<tr>
						<th>#</th>
						<th>Provinsi</th>
						<th>Sapi</th>
						<th>Jumlah</th>
						<th>Tanggal Kejadian</th>
						<th>Catatan</th>
					</tr>
				</thead>   
				<tbody>
				<?php
					if($permintaan){
						$i = 1;
						foreach($permintaan->result_array() as $row){
							echo"<tr>
								<td class='id-permintaan".$row['ID_PERMINTAAN']."'>".$i."</td>
								<td class='id-prov".$row['ID_PROV']."'>".$row['NAMA_PROV']."</td>
								<td class='id-sapi".$row['ID_SAPI']."'>".$row['NAMA']."</td>
								<td class='jumlah".$row['JUMLAH']."'>".$row['JUMLAH']."</td>
								<td class='tanggal".$row['TANGGAL_KEJADIAN']."'>".$row['TANGGAL_KEJADIAN']."</td>
								<td class='komentar".$row['KOMENTAR']."'>".$row['KOMENTAR']."</td>
							</tr>";
							$i++;
						}
					}
				?>
				</tbody>
			</table>            
		</div>
	</div>
</div>

